const { SequelizeAuto } = require('sequelize-auto');
const {db_config} = require("../util/mysqlConnection");

const auto = new SequelizeAuto(db_config.database, db_config.username, db_config.password, {
    host: 'localhost',
    dialect: 'mysql',
    directory: './demo', // 存放生成模型文件的路径
});

auto.run((err) => {
    if (err) throw err;
    console.log('Models generated successfully!');
});

